package com.amigo.online.provider.manager.util;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class OrderUtils {

    public static String createOrderNumber() {
        return LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMMddHHmmss"))
                + (int) ((Math.random() * 9 + 1) * 1000);
    }

    public static void main(String[] args) {
        System.out.println(OrderUtils.createOrderNumber());
    }
}

